<?php
$uuid = $this->uuid('link', $this->here);
$controller = $session->read('Auth.User.prefix') == ITS_PREFIX? 'its_admins': 'supplier_admins';
echo $html->link('View as Site user',
    array('controller' => $controller, 'action' => 'view_as_site_user', $this->data['Site']['id'], $this->data['Site']['customer_id']),
    array('id' => 'viewAsSite' . $uuid, 'class' => 'button view_as_site_user', 'title' => 'View as site user.'), null, false);
echo $this->element('javascript/confirm_link', array('id' => 'viewAsSite' . $uuid, 'message' => 'Do you want to view as "' . $this->data['Site']['name'] . '" user?'));
?>